/**
 * 
 * The explosion manager manages everything related to explosions for the game.
 * 
 * Author: Matthias Van Eeghem <matthias@van-eeghem.com>
 * All rights reserved.
 * 
 */

package com.bomberman.explosion;

import java.util.ArrayList;

public class ExplosionManager 
{
	/**
	 * List of all explosions currently active
	 */
	private static ArrayList<Explosion> explosionList = new ArrayList<Explosion>();
	
	/**
	 * Push back a explosion onto the list
	 * 
	 * @param explosion
	 */
	public static void addExplosion(Explosion explosion)
	{
		explosionList.add(explosion);
	}
	
	/**
	 * Returns the explosion list.
	 * 
	 * @return The explosion list
	 */
	
	public static ArrayList<Explosion> getExplosionList()
	{
		return explosionList;
	}
}
